<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Close the session</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.sessionhandlerinterface.html">SessionHandlerInterface</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sessionhandlerinterface.destroy.html">SessionHandlerInterface::destroy</a></div>
 <div class="up"><a href="class.sessionhandlerinterface.html">SessionHandlerInterface</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sessionhandlerinterface.close" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SessionHandlerInterface::close</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0)</p><p class="refpurpose"><span class="refname">SessionHandlerInterface::close</span> &mdash; <span class="dc-title">Close the session</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-sessionhandlerinterface.close-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><strong>SessionHandlerInterface::close</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Closes the current session. This function is automatically executed when
   closing the session, or explicitly via <span class="function"><a href="function.session-write-close.html" class="function">session_write_close()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-sessionhandlerinterface.close-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-sessionhandlerinterface.close-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   会话存储的返回值（通常成功返回 0，失败返回 1）。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.sessionhandlerinterface.html">SessionHandlerInterface</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sessionhandlerinterface.destroy.html">SessionHandlerInterface::destroy</a></div>
 <div class="up"><a href="class.sessionhandlerinterface.html">SessionHandlerInterface</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
